package com.zerosky.crm.service;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Role;
import com.zerosky.crm.util.PageInfo;

/**Role业务逻辑接口 
 * @author hugy;
 * @since 2017-06-09
 */
public interface RoleService {

	/**Role列表接口
	 * @author hugy;
	 * @since 2017-06-09
	 */
	public PageInfo<Role> getRoleList(Map<String, Object> map);
 
	/**通过主键查找Role实体接口
	 * @param id Role主键
	 * @author hugy;
	 * @since 2017-06-09
	 */
	public Role getRoleById(String id);

	/**保存Role接口 
	 * @param Role 实体对象, operation 操作类型
	 * @author hugy;
	 * @since 2017-06-09
	 */
	public void saveRole(Role role, String operation) throws Exception;

	/**批量删除Role接口
	 * @param idArray Role主键数组
	 * @author hugy;
	 * @since 2017-06-09
	 */
	public void deleteRoleById(String[] idArray) throws Exception;
	
}
